import http from "@/http/http";

const url = "shoppingcard"

export default {
    getListByPage: function (){
        return http.post(`${url}/list.do`);
    },
    del: function (id){
        return http.get(`${url}/del.do`,{
            params: {
                id
            }
        })
    },

    delBatch: function (ids){
        return http.get(`${url}/delBatch.do`,{
            params: {
                ids
            }
        })
    },
    add: function (id){
        return http.get(`${url}/CountAdd.do`,{
            params: {
                id
            }
        })
    },
    mouse: function (id){
        return http.get(`${url}/CountMouse.do`,{
            params: {
                id
            }
        })
    },
    sum: function (ids){
        return http.get(`${url}/sum.do`,{
            params: {
                ids
            }
        })
    },
    getmany: function (ids){
        return http.get(`${url}/getmany.do`,{
            params: {
                ids
            }
        })
    },

}